//
//  CategoryGoodsCell.swift
//  WangPu
//
//  Created by xiaozhi on 15/9/23.
//  Copyright (c) 2015年 zhixiao. All rights reserved.
//

import UIKit

class CategoryGoodsCell: UITableViewCell {
    @IBOutlet var selectImageView:UIImageView!
    @IBOutlet var typeName:UILabel!
    @IBOutlet var lineView:UIView!
    @IBOutlet var scaleView:UIView!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        self.showUnhight(false)
        //        typeName.textColor = UIColor.whiteColor()
        lineView.backgroundColor = commonBackgoundColor
        contentView.backgroundColor =  UIColor.whiteColor()
    }
    func showHight(anmation:Bool){
        //        typeName.textColor = UIColor.blackColor()
        selectImageView.backgroundColor =  commonRedColor
        contentView.backgroundColor = UIColor(red: 239/255.0, green: 239/255.0, blue: 239/255.0, alpha: 1.0)
    }
    func showUnhight(anmation:Bool){
        //        typeName.textColor = UIColor.whiteColor()
        selectImageView.backgroundColor =  UIColor.clearColor()
        contentView.backgroundColor = UIColor.whiteColor()
    }
    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    override func prepareForReuse() {
        super.prepareForReuse()
        self.showUnhight(false)
    }
}
